package Cajero.Interfaz;

import Administrador.Interfaz.InterfazCliente;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.swing.JFrame;
import javax.swing.JPanel;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author yailebs
 */
public class RegistrarCliente extends javax.swing.JFrame {

    public static RegistrarCliente instancia2;
   
    /**
     * Creates new form RegistrarCliente
     */
    public RegistrarCliente() {
        initComponents();
        this.setLocationRelativeTo(null);
        this.setVisible(true);
        this.setResizable(true);
        this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

    }
    
     public static RegistrarCliente getInstance(){
		if(instancia2==null){
			instancia2 = new RegistrarCliente();
		}
		return instancia2;
	}
    
    //Asignar valores
    
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        contenedorFondoOsc = new javax.swing.JPanel();
        jpInformacionCaja = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        logo = new javax.swing.JLabel();
        InterfazCliente objCliente = new InterfazCliente();
        contenedorRegistro = new javax.swing.JPanel();
        fondoOscuro = new javax.swing.JLabel();
        fondoCamping = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("Registrar Cliente");
        setBackground(new java.awt.Color(17, 14, 12));
        setForeground(new java.awt.Color(41, 30, 30));
        setMinimumSize(new java.awt.Dimension(812, 564));
        setPreferredSize(new java.awt.Dimension(812, 564));
        getContentPane().setLayout(null);

        contenedorFondoOsc.setLayout(null);

        jpInformacionCaja.setBackground(new java.awt.Color(166, 163, 185));
        jpInformacionCaja.setToolTipText("");
        jpInformacionCaja.setOpaque(false);
        jpInformacionCaja.setLayout(null);

        jLabel3.setFont(new java.awt.Font("DejaVu Sans", 1, 28)); // NOI18N
        jLabel3.setForeground(new java.awt.Color(240, 240, 240));
        jLabel3.setText(" Registrar nuevo cliente");
        jpInformacionCaja.add(jLabel3);
        jLabel3.setBounds(30, 0, 420, 50);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/prueba.jpg"))); // NOI18N
        jpInformacionCaja.add(jLabel1);
        jLabel1.setBounds(10, 0, 650, 50);

        contenedorFondoOsc.add(jpInformacionCaja);
        jpInformacionCaja.setBounds(130, 20, 660, 50);

        logo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/logoEncabezado.png"))); // NOI18N
        contenedorFondoOsc.add(logo);
        logo.setBounds(10, 0, 110, 90);

        contenedorRegistro.setOpaque(false);
        contenedorRegistro.setLayout(null);

        contenedorRegistro.add(objCliente.registrarCliente());

        contenedorFondoOsc.add(contenedorRegistro);
        contenedorRegistro.setBounds(-190, 40, 980, 460);

        fondoOscuro.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/fondoCentral.jpg"))); // NOI18N
        fondoOscuro.setPreferredSize(new java.awt.Dimension(870, 520));
        contenedorFondoOsc.add(fondoOscuro);
        fondoOscuro.setBounds(0, 0, 790, 510);

        getContentPane().add(contenedorFondoOsc);
        contenedorFondoOsc.setBounds(10, 10, 790, 510);

        fondoCamping.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Camping.jpg"))); // NOI18N
        fondoCamping.setMinimumSize(new java.awt.Dimension(700, 610));
        fondoCamping.setPreferredSize(new java.awt.Dimension(700, 710));
        getContentPane().add(fondoCamping);
        fondoCamping.setBounds(0, 0, 810, 540);

        getAccessibleContext().setAccessibleDescription("");

        pack();
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel contenedorFondoOsc;
    private javax.swing.JPanel contenedorRegistro;
    private javax.swing.JLabel fondoCamping;
    private javax.swing.JLabel fondoOscuro;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JPanel jpInformacionCaja;
    private javax.swing.JLabel logo;
    // End of variables declaration//GEN-END:variables
}
